<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<div class="table-responsive">
<table class="cntable table table-bordered dataTable">
	<thead>
		<tr>
		    <th style="width: 50px">序号</th>
		    <th style="width: 50px">用户编号</th>
			<th style="width: 100px">用户名</th>
			<th style="width: 50px">推荐人编号</th>
			<th style="width: 100px">团队层次(层次相对于参与分润者来划分)</th>
			<th style="width: 100px">用户级别</th>
			<th style="width: 100px">注册时间</th>
			<th style="width: 100px">推广奖</th>
			<th style="width: 100px">一级分享奖</th>
			<th style="width: 100px">二级分享奖</th>
			<th style="width: 100px">服务奖</th>
			<th style="width: 100px">孵化奖</th>
			<th style="width: 100px">总和</th>
		</tr>
	</thead>
	 <tbody>
		<c:forEach var="cusDemo" items="${cusDemos}" varStatus="status">
		<tr>
		   <%-- <input type="hidden" class="refreshId" value="${cusDemo.id}"> --%>
		   <td>${status.index+1}</td> 
		   <td>${cusDemo.userIdentity}</td>
		   <td>${cusDemo.username}</td>	
		   <td>${cusDemo.refereeIdentity}</td>	
		      	 <c:choose>
		       		<c:when test="${cusDemo.sord == 0}">
		       		<td>消费人</td>
		       		</c:when>
		       		<c:otherwise>
		       		<td>消费人前${cusDemo.sord}级</td>
		       		</c:otherwise>
		       </c:choose>		
           <td>
              <t:provider packageName="acc" enumClassName="CustomerDemoLevel" value="${cusDemo.level}"/> 
           </td>
           <td>
           	  <fmt:formatDate value="${cusDemo.registDate}" type="date" dateStyle="default" pattern="yyyy-MM-dd HH:mm:ss"/>
           </td>
           <td>${cusDemo.promote}</td>
           <td>${cusDemo.firstShare}</td>
           <td>${cusDemo.secondShare}</td>
           <td>${cusDemo.server}</td>
           <td>${cusDemo.hatch}</td>
           <td>${cusDemo.tempPercentege}</td>
		</tr>
		</c:forEach>
	</tbody>
</table>
</div>

